<?php
/**
 * CreateTime: 2022/5/30 15:59
 */

namespace App\Http\Requests\Lending;

use App\Http\Requests\BaseRequests;

class AddLendingPost  extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'contract_id' => "required",
            'borrow_time' => "required",
        ];
    }

    public function messages()
    {
        return [
            'contract_id.required' => "被借阅的合同不能为空",
            'borrow_time.required' => "期待借阅时间不能为空",
        ];
    }


}
